package com.kaili.basic.controlle;


import com.kaili.basic.pojo.entity.HomeNotice;
import com.kaili.basic.service.HomeNoticeService;
import com.kaili.basic.version.ApiVersion;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 首页通知 前端控制器
 * </p>
 *
 * @author xxx
 * @since 2019-03-07
 */
@RestController
@ApiVersion(1)
@RequestMapping("/{api_version}")
@Api(tags = "首页通知", description = "首页通知相关API")
public class HomeNoticeController {
    @Autowired
    HomeNoticeService homeNoticeService;

    //条件查询获取供应商信息
    @GetMapping(value = "/homeNotices/queryHomeNotice")
    @ApiOperation(value = "查询通知数量",notes = "查询通知数量")
    public HomeNotice queryHomeNotice() {
        return homeNoticeService.queryHomeNotice();
    }
}

